package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.MyOrder;
import cn.wolfcode.trip.base.query.QueryObject;
import java.util.List;

public interface MyOrderMapper {
    int deleteByPrimaryKey(Long id);

    int insert(MyOrder record);

    MyOrder selectByPrimaryKey(Long id);

    List<MyOrder> selectAll();

    int updateByPrimaryKey(MyOrder record);

    List<MyOrder> queryForList(QueryObject qo);

    List<MyOrder> getOrderByPaid(Long userId);

    List<MyOrder> getObligationOrder(Long userId);

    void deleteOrderById(Long orderId);

    Integer getTotalCount(Long userId);

    Integer getCounts(Long userId);

    void updateState(Long orderId);

    MyOrder getProductInfo(Long orderId);
}